for %%I in (.) do set CurrDirName=%%~nI
echo %CurrDirName%